<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>网站设置</title>
	<script type='text/javascript' src='__ROOT__/Data/Org/Jquery/jquery-1.8.2.min.js'></script>
	<link href='__ROOT__/Data/Org/hdjs/hdjs.css' rel='stylesheet' media='screen'>
	<script type='text/javascript' src='__ROOT__/Data/Org/hdjs/hdjs.min.js'></script>
	<script type='text/javascript' src='__ROOT__/Data/Org/hdjs/org/cal/lhgcalendar.min.js'></script>
	<script type='text/javascript'>
		MODULE='__URL__'; //当前模块(控制器)
		ACTION='__ACTION__';//当前方法(方法)
		ROOT='__ROOT__'; //当前项目根路径
		PUBLIC= '__PUBLIC__';//当前定义的Public目录
	</script>
	<script type="text/javascript" src="__PUBLIC__/js/mod.base.js"></script>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/mod.base.css" />
</head>
<body>
<div class="hd-menu-list">
	<ul>
		<li class="active">
			<a href="javascript:;">网站配置</a>
		</li>
		<li>
			<a href="<?php echo U('Config/add');?>">添加配置</a>
		</li>
		<li>
			<a href="<?php echo U('Config/update_cache');?>">更新缓存</a>
		</li>
	</ul>
</div>

<div class="hd-title-header">温馨提示</div>
<div class="help">
	<ul>
		<li>模板中使用配置项方法为{ $Think.config.变量名}，请仔细修改配置项，不当设置将影响网站的性能与安全</li>
	</ul>
</div>
<form class="hd-form" action='' method="post" enctype='multipart/form-data'>

	<div class="hd-tab">
		<ul class="hd-tab-menu">
			<?php if(is_array($data)): foreach($data as $key=>$v): ?><li lab='<?php echo ($key); ?>' <?php if($key == '基本设置'): ?>class='active'<?php endif; ?>
				>
				<a href="#"><?php echo ($key); ?></a>
			</li><?php endforeach; endif; ?>

	</ul>
	<div class="hd-tab-content">
		<?php if(is_array($data)): foreach($data as $key=>$v): ?><div lab="<?php echo ($key); ?>" class="hd-tab-area">
				<table class='hd-table hd-table-form hd-form'>
					<thead>
						<tr style="background: #E6E6E6;">
							<td class='hd-w30'>排序</td>
							<td class="hd-w200">标题</td>
							<td>配置</td>
							<td class="hd-w500">变量</td>

						</tr>
					</thead>
					<tbody>
						<?php if(is_array($v)): foreach($v as $key=>$value): ?><tr>
								<td><input type="text" name="sort[<?php echo ($value["code"]); ?>]" value="<?php echo ($value["sort"]); ?>" class='hd-w30'/></td>
								<td ><?php echo ($value["title"]); ?></td>
								<td align="left"><?php echo ($value["form"]); ?></td>
								<td align="left"><?php echo ($value["code"]); ?></td>
							</tr><?php endforeach; endif; ?>
					</tbody>
				</table>
			</div><?php endforeach; endif; ?>
	</div>
</div>
<input type="submit" class="hd-btn hd-btn-xm" value="确定"></form>

</body>
</html>